package com.gp.learn.ssm.base.system.service.impl;

import com.gp.learn.ssm.base.core.mybaits.base.service.impl.BaseServiceImpl;
import com.gp.learn.ssm.base.system.entity.BaseRole;
import com.gp.learn.ssm.base.system.entity.BaseRoleUser;
import com.gp.learn.ssm.base.system.mapper.BaseRoleUserMapper;
import com.gp.learn.ssm.base.system.service.BaseRoleUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统角色-用户关联 服务实现类
 * @author gp
 * @since 2020-07-24
 */
@Service
public class BaseRoleUserServiceImpl extends BaseServiceImpl<BaseRoleUserMapper, BaseRoleUser> implements BaseRoleUserService {

    @Override
    public List<BaseRole> selectRoleListByUser(Long userId) {
        return this.baseMapper.selectRoleListByUser(userId);
    }
}
